﻿@{
    ViewBag.Title = "用户中心";
}
@model Shake.Domain.Models.User
<div class="col-md-2">
    <ul class="nav nav-pills nav-stacked">
        <li role="presentation" class="active">
            <a href="javascript:void(0);">我的资料</a>
        </li>
        <li role="presentation">
            <a href="javascript:void(0);" id="my-profile">我的证件</a>
        </li>
        <li role="presentation">
            <a href="javascript:void(0);" id="my-skill">资质/技能</a>
        </li>
    </ul>
</div>
<div class="col-md-10">
    <div id="my-profile">
        <form>
            <div class="form-group">
                <label for="name">姓名</label>
                <input type="text" value="@Model.Name" class="form-control" id="name" placeholder="姓名">
            </div>
            <div class="form-group">
                <label for="name">工号</label>
                <input type="text" value="@Model.Number" class="form-control" id="number" placeholder="工号">
            </div>
            <div class="form-group">
                <label for="name">性别</label>
                <select class="form-control" id="sex">
                    <option @(Model.Sex == Shake.Domain.Emuns.Sex.男 ? "checked" : string.Empty)>男</option>
                    <option @(Model.Sex == Shake.Domain.Emuns.Sex.女 ? "checked" : string.Empty)>女</option>
                </select>
            </div>
            <div class="form-group">
                <label for="name">电话</label>
                <input type="tel" id="phone" value="@Model.Phone" class="form-control" placeholder="工号">
            </div>
            <div class="form-group">
                <label for="name">生日</label>
                <input type="datetime" id="birthday" value="@Model.BirthDay.ToString("yyyy-MM-dd")" class="form-control" id="name" placeholder="工号">
            </div>
            <button type="button" id="saveBtn" class="btn btn-default">保存</button>
        </form>
    </div>
</div>

<div id="window" style="padding:20px">
    <div id="windoGrid"></div>
</div>
<div id="windowQuali">
    <div id="windoGrid2"></div>
</div>
<input type="hidden" id="sex" value="@Shake.Framework.Utility.EnumUtil.GetEnumJson(typeof(Shake.Domain.Emuns.Sex))" />
<input type="hidden" id="certificateTypes" value="@Shake.Framework.Utility.EnumUtil.GetEnumJson(typeof(Shake.Domain.Emuns.CertificateType))" />

<input type="hidden" id="treeDataSource" value="@Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.TreeDataSource)" />
<input type="hidden" id="allDepartments" value="@Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.AllDepartments)" />
<input type="hidden" id="posts" value="@Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Posts)" />
<input type="hidden" id="model" value="@Newtonsoft.Json.JsonConvert.SerializeObject(Model)" />